<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
<head>
<title>成员信息表
</title>   
<s:include value="../common/source.jsp">
</s:include>
<script src="js/member.js">
</script>	
</head>
<body>
<div class="body"> 
	 <div class="content ui-sortable">
           <div class="list">
          	成员列表
          	</div>
          	</div>
          	 <br/>
<div class="load0">
	    <form  action="admin/FileCreateAction.action" method="post">
	     <input id="down-button" class="sui-btn btn-primary" type="submit"  value="下载Excel"> 
	    </form>
   
 	  </div> 
         	  <br/> 
         <hr style="background-color:#cfe1f9;height:1px;"/> 
	<form class="sui-form form-horizontal sui-validate" 
		action="file?file=upload" 
		method="post" 
		enctype="multipart/form-data">	    	 
		<table class="sui-table table-primary table-sideheader">
		<thead>
			<tr>
 				<th  style="width:4%;text-align:center">序号</th>
				<th>姓名</th>
				<th>专业技术职务</th>
				<th>学位</th>
				<th>状态</th>
				<th colspan="2" style="text-align: center;">操作</th>
				</tr>
		</thead>
		<tbody>
		<s:iterator value="teacher">
			<tr>
					<td  style="text-align:center"></td>
				<td><s:property value="name"/></td>
				<td><s:property value="duty"/></td>
				<td>
					<s:if test="degree==0">博士</s:if>
					<s:elseif test="degree==1">硕士</s:elseif>
					<s:elseif test="degree==2">学士</s:elseif>
					<s:elseif test="degree==3">其他</s:elseif>
				</td>
				<td>
					<s:if test="online==0">在职</s:if>
					<s:elseif test="online==1">离职</s:elseif>
					<s:elseif test="online==2">退休</s:elseif>
				</td>
				<td>
					<a href="leader/ToTeacherMangerAction?
							teach.teaId=<s:property value="teaId"/>">查看信息
					</a>
				</td>
				<td>
					<a href="admin/TansferStudentAction.action?teacher.user=<s:property value="user"/>">查看学生
					</a>
				</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
</form>
</div>
<!-- 成员信息表结束--> 
<div align="center" style="font-size: 12px">
<!-- **************************************全部的分页****************** -->
	<s:if test="currentpage!=1">
		<a href="leader/AllDirectTeacherAction?currentpage=1">首页
		</a> | 
		<a href="leader/AllDirectTeacherAction?
				currentpage=<s:property value="currentpage-1"/>">上一页
		</a>
	</s:if>    
	<s:if test="currentpage!=endpage&&endpage!=0">
		<a href="leader/AllDirectTeacherAction?
				currentpage=<s:property value="currentpage+1"/>">下一页
		</a> | 
		<a href="leader/AllDirectTeacherAction?
				currentpage=<s:property value="endpage"/>">尾页</a>
	</s:if>			
	<s:if test="currentpage==1&&count==0">
	<div>对不起，你所查找的数据条数为0！</div>
	</s:if>
</div>	  
</body>
</html>
